/**
 * Created by yy on 2017/7/21.
 */
$(function(){
    var url = server + '/server/business/workMessageRest/getWorkMessageList.json';
    $.post(url, function(data){
        var ctx = template('./index-tpl', data);
        $("#index").html(ctx);
    });

    document.getElementsByClassName('input-group-addon')[0].onclick = function (){
        var text = $('.job-search.input-group input').val();

        var url = server + '/server/business/workMessageRest/getWorkMessageByTitle.json';
        var args = {"title":text};
        $.post(url, args, function (data) {
            var ctx = template('./index-tpl', data);
            $("#index").html(ctx);
        });
    }

});